package com.ftg.learn.chapter8.zaofabaidicheng;

/**
 * 坐船的人
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/7/21 下午3:37
 */
public class Human {

    private String name;

    private String identity;

    public void look(Scenery a1) {
        System.out.println(this.getName() + "看到了 " + a1.getName());
    }

    public void listen(Ape a1) {
        System.out.println(this.getName() + "听到了");
        a1.shout(10);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }
}
